/**
 * <p>button控件，默认宽度为80</p>
 * 继承自Ext.button.Button，xtype = cceafbutton

 * @module Ext-ux-cceaf-control
 * @class cceaf.control.Button
 * @extends Ext.button.Button
 * @since 1.0
 */
Ext.define('cceaf.control.Button',{
	extend: 'Ext.button.Button', 
	requires: [
   	    'cceaf.ControlDefaultConfig',
    ],
    alias: 'widget.cceafbutton',
    enableKeyEvents:true,
    constructor: function(config){
		config = config || {};
		
		var defaultButtonWidth = cceaf.ControlDefaultConfig.DEFAULT_BUTTON_WIDTH;
		config = Ext.applyIf(config || {}, {
			width: defaultButtonWidth,
			pressed: true
		});

		cceaf.control.Button.superclass.constructor.apply(this, arguments);
	}
	
});